<?php
include("../config/config.php");

$enable=0;
$confirm=0;
//$auto_publish_timing=date("Y-m-d h:i:s");
$title=$_POST['title'];
$image=$_POST['image'];
$type=("转载");
$author=("微壳汽车网小编");
$source=("汽车之家");
$source_url="https:".$_POST['url'];
$bd=$_POST['bd'];
$bb = addslashes($bd);
$likes=0;
$views=0;
$comments=0;
$published_at=date("Y-m-d h:i:s");
$created_at=date("Y-m-d h:i:s");
$updated_at=date("Y-m-d h:i:s");


$sql="insert into z_rcmd_article (enable,confirm,title,image,type,
author,source,source_url,content,likes,views,comments,published_at,created_at,updated_at
) values ('$enable','$confirm','$title','$image','$type',
'$author','$source','$source_url','$bb','$likes','$views','$comments','$published_at','$created_at','$updated_at')";
$res=$mysqli->multi_query($sql);
if($res=true){

	echo ("<script>alert('发布成功！');</script>");

	//header("location:/controller/ss.php");
   echo("<meta http-equiv=\"Refresh\" content=\"0; url=/cj/controller/ss.php\" /> ");
}

?>